#include <iostream>
#include <fstream>
using namespace std;

#include "src/String.h"

int main(int argc, char *argv[])
{
  int credit = 0;
  String s1 = "Hello";
  if (s1.refCount() == 1)
    cout << 1 << ++credit << endl;
  String s2 = s1;
  if (s2.refCount() == 2 &&
      s1.getRaw() == s2.getRaw())
    cout <<  2 <<++credit << endl;
  if (s1.length() == 5)
    cout << 3 << ++credit << endl;
  String s3 = "bye";
  s1 = s3;
  if (s2.refCount() == 1)
    cout <<  4 << ++credit << endl;
  if (s3.refCount() == 2)
    cout <<  5 <<++credit << endl;
  String s4 = "bye";
  if (s3.refCount() == 2)
    cout <<  6 << ++credit << endl;
  if (s4.getRaw() != s3.getRaw())
    cout <<  7 << ++credit << endl;
  if (s3 == s4)
    cout <<  8 <<++credit << endl;
  String s5 = s3 + s4;
  if (s5 == "byebye")
    cout << 9 << ++credit << endl;
  if (s5.getRaw() != s3.getRaw())
    cout <<  10 << ++credit << endl;
}